<template>
  <div class="card" :class="item.cardData.check ? 'check' : ''">
    <div class="top"> {{ item.cardData.account_type === 1 ? '主账号' : '子账号' }} </div>
    <div class="center" style="">{{ item.cardData.corp_name }}</div>
    <div class="bottom">
      <div></div>
      <div>
        <!-- <span>{{ item.cardData.role_name }}</span> -->
        <span>{{ item.cardData.role_name }}</span>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue'
let item = defineProps(['cardData'])
</script>

<style lang="scss" scoped>
.card {
  display: flex;
  flex-direction: column;
  width: 30%;
  height: 200px;
  border: 1px solid #ccc;
  margin: 0 20px;
  .top {
    width: 100%;
    height: 40px;
    font-size: 14px;
    line-height: 40px;
    padding-left: 18px;
    box-sizing: border-box;
  }
  .center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 0, 0.1);
    font-size: 23px;
  }
  .bottom {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 60px;
    align-items: center;
    justify-content: space-around;
    div:nth-child(1) {
      font-size: 10px;
    }
    div:nth-child(2) {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 10px;
    }
  }
}
.check {
  border: 1px solid orange;
  box-shadow: 10px 10px 10px orange;
}
</style>
